add unit test; save some vertical space