Adding rectangular function unit tests