Add test for N=4
Add complex test and test for invalid arguments.
test passes.