add warning messages for categories; fix tests;