Adding tests for AWHEN and A?WHEN.