Remove unused import.
Add some passing test cases.

For #150 and #294.