fix deferred tests