added unittest