Adding test for setup of sql field and fixing its input test.