functional test for store