fix warnings in railties test

fix warning with enclosing in ()