Added test for inconsistency between read and write method

Issue: SPR-11361