Removed unnecessary test from main.