modified logging in test phase