test all the cases