Fix typos, whitespace and test tags.
Add tests for implicit conversion and exceptions for wrong types.