Extend library service test. Move tests to own directory.