Fix unit test

Replacing double quotes with single quotes and removing global variable
declaration from source script. Exception handling is also added to unit
test and removed from production script.
Update readme with the build steps.