configured and fixed js unit tests