Add test to see coverage, add unittests for gaussian and cosine impl