Add model tests

![image](https://f.cloud.github.com/assets/5343964/2299902/65455eca-a0d8-11e3-9549-acae98557b9a.png)