Renamed ExceptionPolicy to ErrorPolicy as they may not involve any exceptions. Added more tests for ui