write spec. fails some tests