Added mocking to test_find
Updated testing compatibility for py27