define structure for tests, corrected three.js 'self' error