Fixed remaining bug in implementation of readable and writable.
Made tests run on Ubuntu.