Added further test cases.  Fixed bugs related to field specifications and searches.