Made some tests for sleepy and fixed some bug I think.