Changed getAll() to return empty list instead of null on empty table.
Adjusted test cases. (refs #323)