Added test to ignore pattern.
Added karma tests.