call 'after' only when passing the test