Bug 926871 - Prevent reflowing when the software button is hidden and add test cases for software button manager

https://bugzilla.mozilla.org/show_bug.cgi?id=926871
1. Prevent reflowing when the software button is hidden
2. add test cases for software button manager