Add tests (close #4)