writePolicy Test and Fixes