wip using karma
replaced old tests with karma/mocha
added proptype for active flag