tests, fix bug discovered while writing tests :o