Rewrote the previous unit tests to correctly make use of $ActualValue and added a test for 'defer'.