Add test
Logic fix
Write readme. Test pending