Fix pointer dereference error in TestParticleInput unit test.
Add missing databases for unit tests.