tests are beautiful, wrote a test, found a bug, fixed the bug

@lauraxt r?