- fixed bug when trying to store old attribute, didn't check pre-viewstate
  values
- fixed a bug when trying to set class in javascript
- added two more unit tests