tests for issue #39. and some pep8 fixes

Addresses issue #39 (Add robustness to the current location search test).