Adding case while github is not available

Deletion unused variable

Improve api tests

Deletion unused class

add new tests