bash bad test fix