working on test driven for functions and servers