gestalt test fixes, brain state reset function