Added safe tests and fixed percent_trigger bug 

Also I'm using portuguese on a prettier print, sorry for that.