Adding test code to compute all the requirements