removed duplicate functions from unit test