add a full integration test via main()