add test for read/write variables