Implemented tests for isEmpty and xor.