Fixed npm installation bug
Added default value option
Added more tests