Fixed internal test in test_unit.py which worked with database but wes not database test case, and because of that failing when test_unit.py was executed alone.
Fixed forgoten default in get_test_case_instance when nose_test doesn't have test attribute.