add tests for overlay