Added alert to test init function