finished partialRight tests and function