Ugly testing hackery