added even more tests
added output to  follow algorithm, instead of debug