Adding tests for shared.io.py