CFY-1620 added tests.
CFY-1620 flake8.
Merge pull request #40 from cloudify-cosmo/CFY-1620-validate-input-tests

CFY-1620 added tests.