integration tests for helpers, found several bugs