completed writing tests for onwiki