tests: remove coupling to update_library() from some tests