added npm modules and some basic tests