Modify and add tests to support simulation of non-0xff erased flash devices. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>