added unit tests
Merge branch 'rewrite' of github.com:AppScale/appscake into rewrite