Database: added tests for reflection exceptions