Fix error in test of getPos