Added mode and mocksPath options and validation