added basic test for channels and the main api