Fixed the read-only write tests
write code passing hopefully