Separate tests from Program.fs to allow correct serialization on Travis and VSO builds.