added brain tests, w/ minor fixes, closes #5