Added 3 unit tests to Challenege147. Also wrote corresponding code to get them to pass.