resolve issue #69, enable warnings when running tests; fix warnings