Remove unneeded and non-working main code from renderwidget.
Oops: fix some imports from the test classes.

Some of the test cases still tried to import from the old paths.
Fix the data resizer test.

Now that the data resizer works correctly, the badly written test case
needed to be fixed ;)
At this point all test cases should work again.