Clean up redundant test and unused action