Rewrite of tests and add semverCmp command