Add test to reproduce the bug that a pending job can not be cancelled.

Refs #2.
Merge branch 'develop' into issue2
Octopus has been fixed so pending jobs can be killed.
Fixes #2.
Octopus has replaced Properties class usage with Map<String, String>.