reference_tests: add a test for the implicit dereference