Removed test for deprecated function read().
Added deprecation warning to read().