Run selftest after loop