Test qualities and diagnostic costs