TRUNK-3204 : Add JUnit test for getting by null/true/false isPreferred i...

3 test written based on data in standardTestDatabase.xml file.