add unit tests for overlay manager