fix warning flags for tests