Rename LoadDatabase test.
Shorten native library check name.
Add test for LastError value.

Add test for LastError value to ensure that managed and C enums
are in sync.