Add check for tests inside app delegate