Add missing tests

Improve coverage for candidates.

Please note that this includes two failing tests waiting for #571.