add tests for replacer
remove authorizr code and test