Added Jasper functional tests, small fixes.