Fixed variable/constant names.
Added minimal test case for EWS writer.