The costs to be allowed in all such cases shall be the same as allowed according to the rules of the court, and provisions of law relating thereto.