added lower to isHttp method, added tests for isHttp method