Add tests to check correct redirecting with store_location