added parallel assignment, modified some test