wrote more tests, wrote _get_addr method for line parser