add condition and the condition basic test cases