solve issue #65 for full applications
hygienic changes
each Issue test must have a main function
fix a temporary error in generation of apply()