Added test coverage.
Moved karma config inside test folder.