Improve unit tests and e2e tests

Added controllers unit tests and e2e tests. The e2e tests most of the time work by waiting for elements to show or hide, and if that event is successful, an assert(true) is used to mark it as such. An assertVisible(selector) or similar could be used, but since the fact of waiting for that event to happen imply that kind of assertion, I considered it redundant. Let me know if you are ok with this, and if you want to add more test scenarios for e2e.

The few standalone-ui changes had already been merged to trash (which is on master now)

@tejohnso please review