added getter
added some test and method to run it