middleman testing