Add testcase for non-existance provider.

Test that non-existing provider, preferredOnly = true and firstOnly =
true.
Add test case for when prefer is not specified.

Also, change single-quote to double-quotes for string literals.