Fix tests to use assert(false) instead of fail when not return value.