Add normalize by median test

@ctb please take a look.