AL: fixed some sinus bump testcasea and added three tests