fMRI code tested