Added partial function feature
unit tests