Factor out static methods by creating a self.target attribute in NS2 class. Remove return value from notify_all. Update tests.