rewrite of test cases 1