added tests for different patterns