added n=2 and n=4 test cases