fixed compiler warnings in src and tests