validate partner id

I've added partner id validation and its test cases.