Refactor test_slurm to reduce repition.
Expand unit test of slurm.py.

- Add testing for Queue, Site, MachineName and Infrastructure.
- Add more positive tests with larger memory values.
- Add negative tests for invalid memory values.
- Correct test for MemoryVirtual.