More unit tests for duplex expression