Added test for custom object movement when return value