Added tests for the inspector scale-up UI communicating with the back end

reverting to original template file

Removed the :checked selector because it's not supported in phantomjs
Fixed issue where it tried to remove the last added unit