Remove extraneous console.log
Add tests for validateAction
Add new test for validateType