Fix visibility qualifier for CmdRes. Removed 'mod lib' in test to get
rid of the warning about crate attribute in non-root mod