Added tests for api store