packet module and testing

I add a test folder in src to place the tests...