Add a test for the shard expiration
Make sure we remove the shard metadata whenever it expires
Close #803. Fix #767
We should just keep track of the time object instead of the seconds