Added test for simple write on database