doctest works on bins