Create common-spec.js

unit test