added foreign key references user to  category model, added some tests to category model