check for class in index path
add 2 unit tests