Add new tests and minified version