Change test and move a function for fraction