added tests for ip-like patterns