Fix the assert should be equals instead of ==

I fixed the assertion for the unit name, the assertion does not work if -ea is set in the VM args.