added test and has and all check fix