Fix handling of boolean parameters. Change test code to match new API.