added unit tests, fixed bugs in Address.php