Fixed issues in gridengine tests