Added testing to main function