Visually cued fear conditioning test for memory impairment related to cortical function