add component test on npm test