add check for open database with relative tests.
Merge branch 'develop' of github.com:orientechnologies/orientdb into develop