Added tests for sqrt and trigonometric functions. Also fixed output for sqrt.