added test program for legal constructs and reports