Added unit test, end to end test and instruction

Added unit test, end to end test and instruction