Add unit test
Add test to make sure stuff is executed in time