Adding tests for database table