add test case and ability to accept path to handler