alt should be an empty string, not undef when a del (lub added during write)
Fixed broken function in test