Some fixes, added testclass for booting through WakeService.