added database tests for parameter counting