Fix the checkpass example against the new api