remove debug output
added some tests