added basic tests and extended api with some getter