changed cache test to wait more than expirytime

change is to avoid random test failure on race condition.
fixes #203 #231