Add tests for qalter and qrerun commands