added test and fixed bugs for mcmcdb_add_parameters