Adding tests

This should complete most of the tests from chrome.dart apps unit test. 

![screen shot 2014-01-03 at 11 10 36 pm](https://f.cloud.github.com/assets/654526/1844249/c8519762-750f-11e3-95ef-a0038eb9a85e.png)