changed default environment nextAddress and maxAddress to 0. now test cases for function calls work