fix #211
fix whitespace
fix typo in test