Implemented writeback unittest