Add class and unit test for magic packet