Add exception tests for unpack_command