improve framework pattern tests