testing building object of location and url