add unit tests for fraction conversion