Add a constant_writer for test purposes.

Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>