Added tests for LibraryItem types.
Added missing type attribute to LibraryItem fabricators.
Added missing LibraryItem creation code.