first working partial version of test