add stdlib test

- add tests for stdlib read/print methods
- add stdlib subclass for i/o emulation