unit tests about if/else conditions