fixed max date bug added a test case for finding shop