fix tests, remove warnings