Change learning window function
Add simple tests for stdp