Fix a bug where all the buttons on the page animated

And write some stricter tests to covert this.