Write testing method