Runs tests before publishing.
Fixes lambda.
Fixes if/else.
Creates a proper error.