karma tests updated for browserify
revised structure, new libs and tests