How to create and test a data fetching library? - SolidJS