add test (and fix ;-)