added a test, removed cout