Test case to check public and private is implemented