test with reference