Added tests for relational API