rewritten creation of test