More tests for more complex scenarios.