add tests for store controller