Finished tests for rio functions