Smith calls time on Test career