The clone_structure_to_test rake task uses the ActiveRecord::ConnectionAdapters::SchemaStatements#dump_schema_information method to dump the insert statement which set the correct version in the schema_info table.
This won't work correctly when using PostgreSQL schemas because, unlike psql which is used for dumping the rest of the schema, the dump_schema_information doesn't take into account the schema in which the table resides.
To fix this, I've overrided the dump_schema_information in the PostgreSQLAdaptor. The new method simply returns the PgSQL "SET search_path" statement followed by the return value of SchemaStatements#dump_schema_information.