Builds out return rendering logic and tests.