Renamed pier_name to name and added end attribute
Modified tests to check for instance of and null