Make sure the  container is well started prior to perform the test
Wait for the container to finish in TestAttachDisconnect before destroying it
Improve TestMultipleAttachRestart to avoid unnecessary warning
Remove unecessary memeory limit within tests
Merge pull request #467 from dotcloud/improve_localhost_port_test

* tests: Improve unit test to avoid unnecessary warnigns