added tests for else if code