Added four testcases and basic function structure