Added a few tests
Added database specs