tests: Test QOM interface casting