Added additional test for nil byte slice writing