Created cucumber tests and fixed bug in categories