working on tester function for rateSTDP