Tests for server-side functions
Bug fix
Fix test functions for new ``__copy__`` method