added npm tests