added tests for authors.
fixing bugs, changing the handling of dto and db models, preparing to add new functionality