Fixes a mistake in a unit test and removes an extra space in docs