Test and improved design of a corrected imaging magnetic energy filter