Added tests for Tak function