pulled testing out into its own file, compares the functions directly