Fix #1: Flakey test

CategoryTestCase should be self contained now. I also added the class
method Category.create for convenience.