Unit test customer

Added tests, 2 are failing, coverage at about 80% of the code. All for customer. 

Added comments aswell.