added unit tests for qutip.expect