Added unit test for return type variable error - issue 15.