Tests added
Fixed bug in GCC and saving some lines of code
Tests prepared with travis