UI: fix broken tests

UI test suite now successfully runs again, though tests still
need to be split up among the new js structure