Moved test calling into dedicated function for external use