Adding io doc code test

@kwalrath is the idea to get the code under test and then fix articles with outdated syntax or api?