fix edge-case failing test