write fuctional tests for store controller