Found a few potential bugs using findbugs. Corrected them.
Merge branch 'master' of github.com:octo-online/robospice
Bug solved in tests.