added tests and testing environment in browser. haven't written any tests yet.