replace tests inside samples