added tests for search by localId