Fixed tests and work with github api