Added a test for changing method return types.

issue #67
Fixed #67