more unit testing for StoreViewBuilder and some fixes in StoreViewBuilder