test run in correct order and build fails if tests fail

Signed-off-by: Reza Akhavan <reza@akhavan.me>