refactoring slurm adaptor to improve testability