updated tests for component helper