Revamp testing suite. Update docs.