added console.assert tests within main.js