added test and updated RE