fixes var names in test
updates test