fix warnings and errors from 'make test' output