testsuite: Two tests for fixed bugs

r? anybody Closes #7246
Closes #7573