added tests for temporary tables