tests for the positions api