Provided better C style for object copy

Added additional test to cover bad copy scenario.