Add callback in addDatabase function

test variable name is not really explicit. Could you change it and use `is` as a prefix.