Added more tests for check_condition function