Added tests for nim