added factory and remove empty test