added tests for gain and quantisation