Adding simple unittest for after_hook
Fixing incorrect dependency calculation for mac+gui
Remove unnecessary comment