Added function to test basic data requirement and one to test main function.