Add extent module and tests.