Patented Unit Tests

Wrote a test block to check if Patenting functions work properly.
Everything seems to be in order.