testing helpers, taken from fantasyland spec