Contact related tests were modified by using DataProvider

Contact related tests were modified by using DataProvider. Some defects
fixed.