Add test for ampersand crash (GH #7).