Test correctly serializes and runs