Design pattern testing