Add initial tests for tag writer

Signed-off-by: Vlad Velici <vlad.velici@gmail.com>