added send method
added type to constructor and toJSON
dont run this test