Moved truncate to own filter.
First attempt of using Karma as test runner.
MInor style changes
Trying to get test to work