Tests added

Test infrasctructure copied from https://github.com/senchalabs/connect