The costs of the order and survey shall be paid by the person making the application; but if he shall maintain an action and recover damages for the injury done or threatened prior to such survey and examination, the costs of the order and survey shall be taxed against the defendant as other costs in the action. The party obtaining the survey shall be liable for any unnecessary injury done to the property examined and surveyed in making the survey. (1913, c. 51, s. 2; C.S., s. 6931.)