preliminary unit tests for shardcached

more would be necessary ... but at least this is a starting point