feat(npm test) add automation for testing

The current way to run the testing is not very clean, it is fail if you
don’t go and run the other commands first. This way is more clean and
easier for the users.