updated tests with parameter functions now taking in parameters dir