added new unit tests for testing consistency between ket and density matrix transformations