Add test for aliased entity