fix stupid typo and add tests to prevent against future stupid typos