fixed unexpected error in regression tests, especially under FPC