improved test for interfaces