Add spec test for category field