Test code 'DSL for detecting patterns in 2D'