Updated unit test to use build parameters and environment variables