edit test file
define more functions
almost complete