Added tests
Full test coverage
Added one more test
Fixed ng-class bug. Reformatted DOM element creation.