Make http tests
Fix missing files
Put all written code into lib/