added $location tests