Add test for exception thrown when trying to construct an interface