tests for the locations controller