updating tests to use the refactoring and updating stan