Revised Automated Tests and Fixed a Bug

- Automated tests now work with the model changes in commit 867f6d0111
- Added a new test and revised those for import_pieces()
- Fixed memory-copying bug that meant only one piece could be imported
- Added unit test for the previous bug