Unit tests for brains.js