move unit test
also test introduction in browser environment
move to package
add test