Add unit tests for appengine.go.