Fixes warnings, and after many trials and tribulations fixes the test case view