handle numeric args and cleanup after tests