Tests for cyclical dependencies added and workaround for UnimplementedError on ParameterMirror.metadata