Added an error exit code to fail in travis when a test failed, and fixed a bug in the testcode
Added an error exit code to fail in travis when a test failed, and fixed a bug in the testcode

jorconnor/senior-design-rpl,jorconnor/senior-design-rpl,jorconnor/senior-design-rpl,jorconnor/senior-design-rpl,jorconnor/senior-design-rpl,jorconnor/senior-design-rpl,jorconnor/senior-design-rpl,jorconnor/senior-design-rpl,jorconnor/senior-design-rpl,jorconnor/senior-design-rpl