added storeController unit tests + bug fixes