fixup tests for logging functions
shift around the sanity check for the create_parser method
cleanup imports