added tests, automatic title generation