Modified interface to be a bit more DRY.
Added assertion that child_process.exec wont be called during tests.
Removed deprecated parseOptions feature.
Added some tests for XMX... A bit meta :/