moved tests to separate functions, only call latest test in main