100% get endpoint coverage, and delete functionality added.

Put still commented out for now. Also refactored tests into a basic
separate module, still far from complete.