add test for argument error and empty dock on release method