fix getTarget & refactor a little
add ShipFile test & simplify DeployerConfig test