Moved constants from base.js to new file constants.js, eliminating magic...

... numbers in tests.