add query method and gae-test-class.