Fix various failing test cases
Better validation of int params, added tests for those
Remove dead code
Merge pull request #23 from wmde/fixTests

Fix various failing test cases