cucumber and minitest tests added

included in here are numerous validation fixes and the addition of standard rails tests (minitest) and a cucumber test.