Added patch and test case for object prototypal inheritance