added test
deleted comented lines
moved database test at spec folder
uncommented line in transaction model
added tests