switch to Go log package; add init to test to discard log output