Added remote schema support and a test for this