trying to write some tests, but its failing and I dont know why