finish unit testing implemented functions