Enable second param for component-helper (module variant)
Add jasmine tests and some changes to make code more testable