Add function for local testing

Signed-off-by: Piotr Bocheński <bochenski.piotr@gmail.com>