reference tests now passing