Mock and test incoming tokens for store commands.

This should make testing of storage command from the outside be covered pretty well.