Get rid of few warnings in tests