made tests and fixed bug with <