Fix #288 Manager.ReplaceDatabase Error

* Close destination steam after copying the database

* Fix CopyStreamToFile offset error

* Add Manager.ReplaceDatabase tests and related asset files