added testing helpers