Added tests
Fixed linear to pass tests
Add randn
minor changes