Matt Glaman: Writing tests first saves time and money later on