Created tests for invalid parameters