(test) added file write spec