More unit tests for "Copy Qualified Name"

Adds a unit test that makes sure that we are dealing with identifiers
like '::', '+' and so on properly.

Adds a unit test with a lazy val.