Fixed setOrientation
Added setOrientation test + test fix
test fix