fixed the requery test
all test cases pass; closes #49