updated changelog and made tests more correct