Added tests for pickLocation