location model and test complete