It would probably be good to verify that resolution was done. You could do this with something like
  expect((decl as FunctionDeclaration).element, isNotNull);