Add some tests for Notebook db