update gradle to 1.7
decrease memory requirements
update tests
gui: add internal tests