Main script + a few tests