added more tests for invalid parameters