testcase 1 implemented