Addding tests for reductions and element wise operatons

- Fixes #77 
- Fixes #164