add condition and its test