adding test pattern matcher