Added unit test to test writeback doesn't modify password