Fixed unittest, made helper template private