merged changes to common tests and common.js
fixed a few typos