updated badge
added tests and new api endpoint