added tests when open sqlite database