Add functional tests for store controller