Add test to close #16 (invalid)