Fix some issues in 'deployment.py' file

Line 44: Initialise features and nodes outside the for loop

Line 68: Added environment attribute to deployment.

Line 130: Changed 'self.deployment.os_name' to 'self.os_name'

Added a test() method in deployment to address issues in PR#62