first two testcases & partly infrastructure