Add custom assert for readonly collection