added tests and implementation for first and last author