tests fix + PHPDOC, replace creating category to abstract class