Added some test, inspired by promises tests in Play! Framework