working example test, refactored helper class