Added extension tests and fixed several build errors.