Added new %set/%get magics and tests