create a mock api to test the solitude api lib (bug 821061)