Fixed extension loading, and added it to functional tests.