Added in test assertion for reading / writing.