refactored testing of default argument