added mock connect and connection
implemented create app tests