Fix variable name typo in test

Returned test passed, when it should have failed because of bad
variable name.
Fix test if "partition" not defined in globals

Use default_partition by default for the test
Merge branch 'slurm-14.03' into slurm-14.11

Conflicts:
	testsuite/expect/test2.18