added tests for pins