Add disk error_policy test cases.

This function is much common, shall we implement it in utils_test?