completed tests for tag() if/else statement