add tests for pair