Added the Module* to the Socket constructor and added some Socket tests

I'm not sure how I feel about these Socket tests using friend classing though.

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>