Fix tests helper