moved tests to separate file, changed time obj to datetime for consistency, and renamed main method to fetch