testsuite: Two tests for fixed bugs

Closes #7246
Closes #7573
auto merge of #9733 : catamorphism/rust/issues-7246-and-7573, r=alexcrichton

r? anybody Closes #7246
Closes #7573