moved createItem method from test to main source where it belongs