fix exception test
add database