pattern tests