Fixed tests and added test for new functionality
Fixed tests and added test for new functionality

bac/juju-gui,mitechie/juju-gui,jrwren/juju-gui,mitechie/juju-gui,bac/juju-gui,mitechie/juju-gui,mitechie/juju-gui,jrwren/juju-gui,jrwren/juju-gui,bac/juju-gui,bac/juju-gui,jrwren/juju-gui