Added tests, and fixed issues detected by them