implemented testing jasmine/karma. demo setup. validateCustom demo and unit tests.