changed 'test' function name to getSubCategories