fixed test invocation and added some relevant asserts