Add tests for User model
Rename 'type' columns and add tests for Piece model