fixed test code
added bit shift operator