more minor bugs
(#387)
fix test to make the comparison a fair one
(#387)