fixed test submit in after hook