added test for failing param validation
added test for params