added first test and fixed data rendering implementation