added changeSizeByN-test...some bugfixes