Created unit tests for location classed