Build out and fix tests.

Add file extension whitelist capability.