minor changes in tests/common.js