Lewis Hamilton set the pace for Mercedes as the second pre-season test of 2013 drew to a close in Barcelona amid damp conditions on Friday.