fix single-sided conditional compile error; add tests
spelling