I'm not sure whether the best way to test something is by making the same operation on the data as what the functions does.  Of course,this would test if the function executes... but it does not look right to me... 

I don't know though if there's a better way to do it...