Added testing function to time GA