Put some assertions into testStatcacheFix().

From #409