Added WriteTest