Add test cases for issues 152/3/4/6

I added test cases for issues #152, #153, #154, #156 .

I did not manage to run them on my computer so I am not sure they work.