Added tests in b27b158.