More tests and introduced tape priority to handle mixed partial derivatives