added tests for findOrNew