Fixed create_connection() to match the emulated one.
Merge pull request #47 from sgalaburda/fix-create-connection

Fixed create_connection() to match the emulated one.