fixed a circular reference and some other minor warnings
added socket io test