Add assert for method param