Add tests for type and validate some parameters