Added unit tests for Word and Category classes