Fixed dock method; wrote failing test