Single design pattern applied on StoreController.
Corrected the test