Add unit test to validate that the return value of a class method can be assigned to a temporary user defined variable.