Book renew invalid on borrow overdue and others

With test case added.