How To Test A Function That Returns An Object With Jest Fraction Improvement