Fixed coverage not reporting correctly on function `error`. Using only error-factory errors everywhere.