Fixed the docker file for running the tests.

Also fixed a problem where the unit tests would fail since the loading view is just a mock without a parent view.