fix for failing tests for rvm PR #2423